<script lang="ts" setup>
interface TextIconProps {
  color?: string;
  size?: number;
  direction?: "horizontal" | "vertical";
  iconProps?: any;
}

withDefaults(defineProps<TextIconProps>(), {
  size: 4,
  direction: "vertical",
});
</script>

<template>
  <umi-space :direction="direction" :size="size" align="center">
    <umi-icon v-bind="iconProps"></umi-icon>
    <umi-text>
      <slot></slot>
    </umi-text>
  </umi-space>
</template>
